package cn.hkctp.hibernate3.demo1;

import javax.persistence.Entity;

/**
 * 实体类对象
 * @author 姜涛
 *
 */
@Entity
public final class Customer {
    private Integer id;
    //private String id;
    private String name;
    private int age;

    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    @Override
    public String toString() {
        return "Customer [id=" + id + ", name=" + name + ", age=" + age + "]";
    }

}
